/* Titlebar */
-window .titlebar {
+.titlebar {
background: -gtk-win32-theme-part(window, 1, 1);
+ min-height: -gtk-win32-size(window, cycaption);
}
-window:backdrop .titlebar {
+.titlebar:backdrop {
background: -gtk-win32-theme-part(window, 1, 2);
}
background: -gtk-win32-theme-part(window, 1, 3);
}
+.titlebar button.titlebutton {
+ margin-top: -gtk-win32-size(button, cyedge);
+ margin-bottom: -gtk-win32-size(button, cyedge);
+ margin-right: -gtk-win32-size(button, cxedge);
+ min-width: calc(-gtk-win32-size(button, cxsize) - 2 * -gtk-win32-size(button, cxedge));
+ min-height: calc(-gtk-win32-size(button, cysize) - 2 * -gtk-win32-size(button, cyedge));
+}
+
+/* XXX: headerbar insists on 6px spacing between buttons. Windows doesn't
+ * think so. */
+.titlebar .titlebutton + .titlebutton {
+ margin-left: -6px;
+}
+
+/* XXX: We don't draw icons here, but the GtkImage still sizes itself to 16x16,
+ * so shrink it enough: */
+.titlebar button.titlebutton image {
+ margin: -3px;
+}
+
.titlebar button.close {
background-image: -gtk-win32-theme-part(window, 18, 1);
color: transparent;